<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<c:set var="ctx" value="${pageContext.request.contextPath}"/>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>示例</title>
</head>
<body>
<h1>示例</h1>
<hr />
<ul>
	<li>城市首页(/cities/{city}):<a href="${ctx }/cities/bejing">北京</a> | <a href="${ctx }/cities/上海">上海</a></li>
	<li>城市单品页(/cities/{city}/promotions/{id}):<a href="${ctx }/cities/bejing/promotions/1">北京,1</a> | <a href="${ctx }/cities/上海/promotions/2">上海,2</a></li>
	<li>二级域名(请在host中将beijing.1.com指向本机)：
		<ul>
			<li>Forward:<a href="http://beijing.1.com:8080/manzuo/forward">/forward -> /cities/{subdomain}</a></li>
			<!-- 
			<li>Redirect:<a href="http://beijing.1.com:8080/manzuo/redirect">/redirect -> /cities/{subdomain}</a></li> -->
		</ul>
	</li>
</ul>
</body>
</html>